<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<core:set var ="webcontext" scope="request" value="${pageContext.request.contextPath}"/>
<core:set var ="imagepath" scope="request" value="${webcontext}/images"/>
<core:set var ="csspath" scope="request" value="${webcontext}/css"/>
<core:set var ="jspath" scope="request" value="${webcontext}/javascript"/>
<core:set var ="jsppath" scope="request" value="${webcontext}/jsp"/>
<core:set var ="htmlpath" scope="request" value="${webcontext}/html"/>
<core:set var ="bootstrapPath" scope="request" value="${webcontext}/bootstrap"/>
<core:set var ="layerPath" scope="request" value="${webcontext}/layer"/>
<!-- TODO the gdms url should replace by the token -->
<core:set var ="gdmsurl" scope="request" value="@token-gdms.server.servlet.context.url.integration@"/>
<script type="text/javascript">
	var contextPath = "${webcontext}";
</script>
<script type="text/javascript" src="${jspath}/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${jspath}/jquery/jquery-1.4.4.js"></script>
<script type="text/javascript" src="${jspath}/jquery/jquery.alerts.js"></script>
<link rel="stylesheet" type="text/css" href="${csspath}/jquery.alerts.css" />
<%@page import="com.cap.bts.framework.common.util.Pager"%>
<%@page import="com.cap.bts.framework.common.constant.CommonConstants"%>
<%@page import="com.cap.bts.framework.common.util.CodeTextUtils"%>
<%@page import="com.cap.bts.framework.common.util.CookieUtils"%>
<%@page import="com.cap.bts.framework.auth.constant.AuthConstant"%>

<script type="text/javascript">
	
	
	
	function Days(date1,date2){
		var y1,y2,m1,m2,d1,d2;
		y1=parseInt(date1.split('-')[0]);
		y2=parseInt(date2.split('-')[0]);
		m1=parseInt(date1.split('-')[1],10);
		m2=parseInt(date2.split('-')[1],10);
		d1=parseInt(date1.split('-')[2],10);			
		d2=parseInt(date2.split('-')[2],10);
		var startDate=new Date(y1,m1-1,d1);
		var endDate=new Date(y2,m2-1,d2);
		var minSeconds=Date.parse(endDate)-Date.parse(startDate);
		var days=minSeconds/1000/60/60/24
		return days;
	}
</script>





